feat(api): add scan security verification endpoint and non-suspicious filters#537
feat(api): add scan security verification endpoint and non-suspicious filters#537VACInc wants to merge 6 commits intoopenclaw:mainfrom
Conversation
|
Someone is attempting to deploy a commit to the Amantus Machina Team on Vercel. A member of the Team first needs to authorize it. |
Greptile SummaryThis PR adds a The implementation is well-structured and the two issues flagged in previous review threads have been addressed:
Key highlights:
Confidence Score: 4/5
Prompt To Fix All With AIThis is a comment left during a code review.
Path: convex/skills.ts
Line: 2276-2282
Comment:
**Post-pagination filtering may silently under-fill pages for cursor-based sorts**
For the `updated` sort (and the non-trending paginate path below), `filterPublicSkillPage` is applied *after* `paginate`, so when `nonSuspiciousOnly=true` removes suspicious skills the response can return fewer items than `limit` while still setting a non-null `nextCursor`. For example, if 4 of the 10 requested items are suspicious, the consumer gets 6 items but a valid cursor — then gets another partially-filled page on the next request.
The `trending` path correctly solves this by fetching up to `MAX_PUBLIC_LIST_LIMIT` and only stopping at `limit` clean entries. A similar over-fetch-and-trim strategy could be applied to cursor-based sorts, but at minimum the public docs and OpenAPI descriptions for `nonSuspiciousOnly` should note that page sizes may be smaller than `limit` when the filter is active — otherwise callers may incorrectly interpret a short page as end-of-results.
How can I resolve this? If you propose a fix, please make it concise.Last reviewed commit: 387160d |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b46cb2938e
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 44e694c974
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
Reviewed this PR. The feature itself still looks useful and needed: That said, I don’t think this branch can be reviewed further as-is. It’s stale against current Required updates before further review:
So my take is: keep the intent of this PR, but update it on top of current |
e1c0fdb to
de430fa
Compare
|
@greptile-apps review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@greptile-apps review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2e7ce157c3
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@greptile-apps review |
|
Codex Review: Didn't find any major issues. 🚀 ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@ngutman updated; would you mind taking another peek when you get a moment? I had originally meant to handle the CLI as well but I am not sure how you feel about that. Maybe we get this one in and I'll open a new one for the CLI once this one has merged? Let me know your thoughts |
|
Closing this in favor of #820 because that replacement PR carries the reviewed fixes on a branch we can update directly. Thanks for the original work here and for the solid starting point. |
Summary
Adds API support for skill security scan verification and aligns API filtering with website behavior for hiding suspicious skills.
What Changed
GET /api/v1/skills/{slug}/scanfor normalized security scan verification details.nonSuspiciousOnlysupport to:GET /api/v1/searchGET /api/v1/skills/api/searchboolean alias parity (trueand1).convex/lib/httpUtils.tsto remove duplication.nonSuspiciousOnly=trueto backfill clean entries before enforcing the finallimit.Validation
bun run lint✅bun run test✅bun run test:e2e✅Files
convex/httpApiV1/skillsV1.tsconvex/skills.tsconvex/httpApi.tsconvex/lib/httpUtils.tsconvex/lib/httpUtils.test.tsconvex/httpApiV1.handlers.test.tsconvex/httpApi.handlers.test.tsconvex/skills.listPublicPage.test.tsdocs/http-api.mddocs/api.mdpublic/api/v1/openapi.jsonRelates #189